GtkSwitch: Use gtk_widget_add_tick_callback
authorMatthias Clasen <mclasen@redhat.com>
Tue, 23 Sep 2014 15:22:12 +0000 (11:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 23 Sep 2014 15:23:20 +0000 (11:23 -0400)
commit7a81aaf3c88a7c0cc4a7eaf8b863dfbc3f76a3b0
tree112c074c43e0a518a73df14249f3d9309132ce7d
parent51ef798251a341c135038c903b8b49e5aafcba38
GtkSwitch: Use gtk_widget_add_tick_callback

This api automatically takes care of dealing with disappearing
frame clocks, which we currently forget to and pay with crashes.
gtk/gtkswitch.c